<template>
  <div>
    <table>
      <tr>
        <td>
          <div class="block" style="width: 400px; height: 300px">
            <span class="demonstration">Click 指示器触发</span>
            <el-carousel trigger="click">
              <el-carousel-item
                v-for="(item, tmpIndex) in imgUrls"
                :key="tmpIndex"
              >
                <h3 class="small">
                  <img :src="item">
                </h3>
              </el-carousel-item>
            </el-carousel>
          </div>
        </td>
        <td>
            
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgUrls: [
        require("@/assets/logo.png"),
        require("@/assets/logo.png"),
        require("@/assets/logo.png"),
        require("@/assets/logo.png"),
      ],
    };
  },
};
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>